Add floating-point save/restore support on domain switch
Signed-off by: Dan Magenheimer <dan.magenheimer@hp.com>
printk("new_thread, done with dom_fw_setup\n");
// don't forget to set this!
v->vcpu_info->arch.banknum = 1;
+ memset(v->arch._thread.fph,0,sizeof(struct ia64_fpreg)*96);
}
#endif // CONFIG_VTI
init_frametable();
+ ia64_fph_enable();
+ __ia64_init_fpu();
+
alloc_dom0();
#ifdef DOMU_BUILD_STAGING
alloc_domU_staging();
} while (0)
#else // CONFIG_VTI
#define __switch_to(prev,next,last) do { \
+ ia64_save_fpu(prev->arch._thread.fph); \
+ ia64_load_fpu(next->arch._thread.fph); \
if (IA64_HAS_EXTRA_STATE(prev)) \
ia64_save_extra(prev); \
if (IA64_HAS_EXTRA_STATE(next)) \